#!/usr/bin/env python

import pickle

shopListFile = 'shopList.data'
shopList = ['apple', 'mango', 'carrot']

file = open(shopListFile, 'wb')
pickle.dump(shopList, file)
file.close()

del shopList
